/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.medicine.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.oyun.base.BaseEntity;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author oyun
* @date 2024-04-29
**/
@Data
@TableName("illness")
public class Illness extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "医院id")
    private Long hpId;

    @ApiModelProperty(value = "医院名称")
    @TableField(exist = false)
    private String hpName;

    @ApiModelProperty(value = "科室id")
    @TableField(exist = false)
    private List<Long> officeId;

    @ApiModelProperty(value = "分类（字典）")
    private String type;

    @TableField(exist = false)
    @ApiModelProperty(value = "知名专家id")
    private List<Long> expertIds;

    @ApiModelProperty(value = "蒙语疾病名称")
    private String mnName;

    @ApiModelProperty(value = "mnNameCode")
    private String mnNameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "蒙语疾病定义")
    private String mnDefinition;

    @ApiModelProperty(value = "zhDefinition")
    private String zhDefinition;

    @ApiModelProperty(value = "蒙语诊断")
    private String mnDiagnosis;

    @ApiModelProperty(value = "mnDiagnosisCode")
    private String mnDiagnosisCode;

    @ApiModelProperty(value = "zhDiagnosis")
    private String zhDiagnosis;

    @ApiModelProperty(value = "蒙语病因与病机")
    private String mnPathogenesis;

    @ApiModelProperty(value = "mnPathogenesisCode")
    private String mnPathogenesisCode;

    @ApiModelProperty(value = "zhPathogenesis")
    private String zhPathogenesis;

    @ApiModelProperty(value = "蒙语疾病临床表现")
    private String mnClinical;

    @ApiModelProperty(value = "mnClinicalCode")
    private String mnClinicalCode;

    @ApiModelProperty(value = "zhClinical")
    private String zhClinical;

    @ApiModelProperty(value = "蒙语治疗重点")
    private String mnTreatment;

    @ApiModelProperty(value = "mnTreatmentCode")
    private String mnTreatmentCode;

    @ApiModelProperty(value = "zhTreatment")
    private String zhTreatment;

    @ApiModelProperty(value = "蒙语治疗原则")
    private String mnPrinciple;

    @ApiModelProperty(value = "mnPrincipleCode")
    private String mnPrincipleCode;

    @ApiModelProperty(value = "zhPrinciple")
    private String zhPrinciple;

    @ApiModelProperty(value = "蒙语治疗方法")
    private String mnTreatmentMethod;

    @ApiModelProperty(value = "mnTreatmentMethodCode")
    private String mnTreatmentMethodCode;

    @ApiModelProperty(value = "zhTreatmentMethod")
    private String zhTreatmentMethod;

    @ApiModelProperty(value = "蒙语护理与预防")
    private String mnPrevention;

    @ApiModelProperty(value = "mnPreventionCode")
    private String mnPreventionCode;

    @ApiModelProperty(value = "zhPrevention")
    private String zhPrevention;

    @ApiModelProperty(value = "传染性(字典)")
    private String transmissibility;

    @ApiModelProperty(value = "严重性(字典)")
    private String seriousness;

    @ApiModelProperty(value = "治愈率")
    private String recoveryRate;

    @ApiModelProperty(value = "蒙语科学研究")
    private String mnScientificResearch;

    @ApiModelProperty(value = "zhScientificResearch")
    private String zhScientificResearch;

    @TableField(exist = false)
    private List<Long> recommendHp;

    @ApiModelProperty(value = "status")
    private Integer status;

    @ApiModelProperty(value = "remark")
    private String remark;

    public void copy(Illness source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
